Create a copy of its own source codeΒΆ
Create a copy of its own source code.
print((lambda str='print(lambda str=%r: (str %% str))()': (str % str))())
Output:
print(lambda str='print(lambda str=%r: (str %% str))()': (str % str))()
print((lambda str='print(lambda str=%r: (str %% str))()': (str % str))())
Output:
print(lambda str='print(lambda str=%r: (str %% str))()': (str % str))()